/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Mostafa
 */
public class DeleteThread extends Thread{

    private  String path;
    public DeleteThread(String path) {
        try {
            this.path=path;
            sleep(1000);
            start();
        } catch (InterruptedException ex) {
            Logger.getLogger(DeleteThread.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    @Override
    public void run() {
        File createdbatchfile=new File(path);
         createdbatchfile.delete();
    }
    
    
}
